 <%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="${ctx}/scripts/common.js"></script>
<%@ include file="/commons/commonList.jsp"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<title>Insert title here</title>
<script type="text/javascript">
   function resize(){
		parent.window.document.all('customerEventSearchList').style.height=document.body.scrollHeight;
	}

	function getAssociateCSEvenId(){
		var tableObj = document.getElementById("ec_table");
		var checkBoxArray = tableObj.getElementsByTagName("input");
		var selectedId = new Array();
		for(var i = 0; i < checkBoxArray.length; i++){
			if(checkBoxArray[i].type != "checkbox") continue;
			if(checkBoxArray[i].checked){
				selectedId[selectedId.length] = checkBoxArray[i].value;
			}
		}
		return selectedId.toString();
	}
</script>
</head>
<body onclick="resize();">
<div style="overflow:auto; height:300px;">

  <ec:ceTable items="customerEventList"
	action="${ctx}/customerService_custServEventAction.do?method=queryCustomerEventSearchList"
	autoIncludeParameters="true"
	var="customerEvent"
	view="pmsview"
	styleClass="gridData2"
	rowsDisplayed="10" >
	<ec:ceRow styleClass="grid">
		<ec:ceColumn headerCell="checkboxHeader" cell ="checkbox" property="keyword" sortable="false" width="3%" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="事件编号" property="eventNo" sortable="false" width="14%" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="详细地点" property="fullAddress" sortable="false" width="7%"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="房 号" property="houseNumber" sortable="false" width="6%" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="联系人" property="contact" sortable="false" width="8%" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="紧急程度" property="emergencyDegreeName" sortable="false" width="8%" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="事件性质" property="custServEventNatureName" sortable="false" width="8%" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="事件内容" property="eventContent" sortable="false" width="15%" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="有效性" property="validityStr" sortable="false" width="6%">
			<c:choose>
				<c:when test="${customerEvent.validityStr eq '001'}">有效</c:when>
				<c:when test="${customerEvent.validityStr eq '000'}">无效</c:when>
				<c:when test="${customerEvent.validityStr eq '002'}">待定</c:when>
			</c:choose>
		</ec:ceColumn>
		<ec:ceColumn headerCell="pmsHeadrCell" title="事件状态" property="eventStatuzStr" sortable="false" width="7%" >
			<c:choose>
				<c:when test="${customerEvent.eventStatuzStr eq '001'}">新 建</c:when>
				<c:when test="${customerEvent.eventStatuzStr eq '002'}">已提交</c:when>
				<c:when test="${customerEvent.eventStatuzStr eq '003'}">已完工</c:when>
				<c:when test="${customerEvent.eventStatuzStr eq '004'}">待归档</c:when>
				<c:when test="${customerEvent.eventStatuzStr eq '005'}">已归档</c:when>
				<c:when test="${customerEvent.eventStatuzStr eq '000'}">作 废</c:when>
			</c:choose>
		</ec:ceColumn>
	</ec:ceRow>
</ec:ceTable>
</div>
</body>
</html>